package com.woniuxy.common.dto.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("用户登录数据")
public class UserLoginDto {
    @NotBlank(message = "账号不能为空!")
    @ApiModelProperty("用户名")
    private String loginName ;
    @NotBlank(message = "密码或验证码不能为空!")
    @ApiModelProperty("密码或验证码")
    private String loginSecret ;
    @ApiModelProperty("登录标识,true,手机号登录,false,账号登录")
    @JsonProperty("isPhoneLogin")
    private boolean isPhoneLogin ;
}
